fix `which` behavior in cygwin