mkdirp needs to be sync