Bug 999868 - encapsulated check for env vars support