Get the correct environment variable name.