Fix the delta computation on download so that it never tries to
delta a file that has the same file as both its parent and its child.