fix lack of mkdirp