Fixing issue with master/slave cross-os path separator.

Addressing JENKINS-21726 (https://issues.jenkins-ci.org/browse/JENKINS-21726).