Fix issue with delta generation when there are multiple files with the same name