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