Fix bug with common root path algorithm when multiple folders start with the same substring.
Fix bug with common root path algorithm when multiple folders start with the same substring.

johan/Sequential,btrask/Sequential,johan/Sequential,btrask/Sequential,btrask/Sequential,btrask/Sequential,johan/Sequential