Clean up the directory structure.