Added check for cygwin