Fix config file check