use sync version of mkdirp to avoid transient errors