refine the support for cygwin environment