check that config file exists before trying to use it