fix workDir for gitcredentials

Possible fix for https://issues.jenkins-ci.org/browse/JENKINS-21016 in unix environment.