Re-name directories for grouping by prefix.