Reorganizes directories