Handle environment variables