qos-scripts: Fix generation of IMQ firewall rules on halfduplex mode (#7800)