further refine the cygwin support