Get the environment variable right.