Fix bug in line detection of iptables-restore --test.