Fixes JENKINS-22848.

Resolve file path on remote for slave nodes.