Run tar command in target directory to remove unnecessary paths from the archive.