mkdirp folders if they dont exist, fixes #7