fixed typo in config file check