implement purging of the include_dir

this can keep collected cruft at bay when nodes are deactivated.