Fix shell portability, test succeeds on NetBSD.
Fix shell portability, test succeeds on NetBSD.

huitema/getdns,glenwiley/getdns,shane-kerr/getdns,smogali/getdns,Acidburn0zzz/getdns,Acidburn0zzz/getdns,smogali/getdns,dkg/getdns,dkg/getdns,Acidburn0zzz/getdns,dkg/getdns,huitema/getdns,glenwiley/getdns,huitema/getdns,dkg/getdns,huitema/getdns,shane-kerr/getdns,shane-kerr/getdns,glenwiley/getdns,glenwiley/getdns,smogali/getdns,Acidburn0zzz/getdns,smogali/getdns,shane-kerr/getdns