safer way to restore hardlinks