fixed checking for config file