why is this needed (ie can't this be detemined in another way without the call to os.getenv here)? is this even set at this stage?