updated machine name check for target group.