Added a check for config file existence