added mkdirp, renamed to node-persist to avoid conflict with another NPM module