Fix os detection with cygwin