Fixed issue where in domain mode only a single matched deployment was undeployed instead of all