fixed some bugs with possible duplicate files using different relative paths not getting caught