You might want to use [mkdirp](https://github.com/substack/node-mkdirp) instead, so that it'll create the directory recursively.