Fix change in logic to locate config file: env.cfg_path must be set befo...

Fix change in logic to locate config file: env.cfg_path must be set before it is first read.