Rewrote computeRelativeNamesAfterRenaming to work with moves.