Changed SetEnv so it works on all machines