Revert "Fixed for cygwin"

This reverts commit 0cadc56e4657561caf79e2b64d513edfaa63723d.