Get rid of some unnecessary quoting
Add no_trailing_slash function
Abort if log-directory isn't empty, rather than removing its contents
Use snogdiff rather than exrdiff for comparisons
Handle multiple input directories

Also various other cleanups and fixes.
Remove debugging statements