Find duplicate directories in a tree (slightly heuristic)