hooks for updating the working directory along with export/
handle directories better
save some useful commands
minor fixes to make directories and symlinks work better.
implement two-pass code, nested repositories should be easy now