Create directories in dump mode

Support creating directories in dump mode.

However, paths to files in filesystem still seem unknown so it will attempt to put everything in the main directory (image).