fixed SetEnv() builtin function