fixed behavior in cygwin