Rearrange directories.