Cleaning up directories.