Recursive mkdir fixes #7047