Fix broken config file check in config