[build] check casing within rules condition