Allow access to any environment variable. Fixes #7873.