[FIXED JENKINS-19764] Ensure parent dir of new builds dir exists.
Merge pull request #1377 from daniel-beck/JENKINS-19764

[FIXED JENKINS-19764] Ensure parent dir of new builds dir exists.