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

@oleg-nenashev  And then? What action would you take? You can't just abort a transaction. Failing horribly on the subsequent builds dir rename doesn't seem to be that inappropriate.