improved cygwin environment variable support