core: Cygwin path conversion must replace slashes first