check if path exists before issue mkdirp