environment should be determined by system variable instead of environment.json file