Fix IDs of elements in the config reference to avoid filename collisions on case insensitive file systems.