Fixed too-early removal of distributor local_template during handling of include/exclude lists.
Fixed too-early removal of distributor local_template during handling of include/exclude lists.

xesscorp/KiCost,hildogjr/KiCost,hildogjr/KiCost,xesscorp/KiCost,hildogjr/KiCost,xesscorp/KiCost