Added check for config.json file existence