properly handle tar archive hardlinks