Re-organizes the directory structure.