Write out the files

Writes to the correct system path if --install flag is given.
Otherwise writes to a random temporary directory as the root.
Add CLI dependencies (cabin, clamp, etc)