this can never work, it should be `os.environ[self.COMMAND_ENVIRONMENT]` or `os.environ.get(self.COMMAND_ENVIRONMENT)`

Please make sure the unit tests trigger this part (e.g. add a test that sets COMMAND_ENVIRONMENT and the correspondig `$FOO` variable, and check for correctness).