Gets the value of an environment variable