Fix path handling on Cygwin