make test: improve handling of packet captures