Changed to use mkdirp, so it actually works