Fix markDuplicate() to handle file A is a duplicate of file B but file B
is already a duplicate of file C.