Rearranges the output directory to contain model, run and code subdirectories.