correct output directory in utils.tar_directory