sequential bugfix: took the tmp dir, not the destdir at the end