fix for incorrectly handled links for tar archives

Signed-off-by: Ketoth Xupack <ketoth.xupack@gmail.com>