Handle duplicate dependencies; tidy up cwd handling a bit, hopefully.
-rwxr-xr-x 28814 cdist