fix workDir for gitcredentials