Use https://github.com/substack/node-mkdirp for making directories recursively.