Clean up directories.