bash: add path deduplication