Properly resolve cygwin paths in Cygwin environments [GH-1366]