fix check for config file