[FIXED JENKINS-14515] Incorrect path separator used on Win slave from Unix master

[JENKINS-14515](https://issues.jenkins-ci.org/browse/JENKINS-14515). Unfortunately I have no idea how to write an automated test for this, since the bug only occurs when the slave is a different platform from the master.