Fix some things that we somehow get away with on Linux and OS X.
On Win32, replace forward slashes in path arguments to copy shell command with backslashes.