Add pruning of old BE's before doing package upgrades