Moves submodules to directories