Fix JENKINS-18443 when running on slaves

I'm afraid JENKINS-18443 is still alive and kicking...