Get environment variables using System.getenv rather than executing
OS-specific command.