Fix ifquery check for mstpctl-ports