Account for adding and removing directories in the exclude list.