Correctly handle renamed & deleted files.