Rearrange names of directories