Added mkdirp functionality