Added detection of cygwin environment.