uses os.path.dirname on purge and clobber base_work_dir