Fix path deduplication reordering bug

Earliest occurrence wins now; more expected behavior