Revert "Improve Cygwin path-stripping code"