use tar command instead of tarfile