Update the environment variables.