Clean up the directories.