[JENKINS-23084] Create parent directories in tests.