@bugfix The setEnvVar function should be static