finish removing support for destdir, add tests