fix variable references in parseConfig conditionals, closes #531