test/daemon-test.sh: Christopher Toledo fix: works for both BSD and GNU netcat