LUN-1310: fixed collision detection when extracting archive.