node.js: use mkdirp to ensure the output directory is created
1.0.1