citemplate: fix string comparison in rules
When quoting in rules it takes the string as literal and doesn't expand the variable
Cherry-pick of 8c066ec0
When quoting in rules it takes the string as literal and doesn't expand the variable
Cherry-pick of 8c066ec0