fixed relative paths and mkdirp