Reorganizes the directory structure