Win32: fix path slashes (diet version)

This is bugfix part of larger PR #3374
Cherry-picked minimal set of commits to fix "slash"-errors.