Resolve "Checking zone transfer information in the statistics channel fails on OpenBSD"
The usage of the newline in the replacement part of the 'sed' call works in GNU systems, but not in OpenBSD. Use 'awk' instead.
Also use the extended syntax of regular expressions for 'grep', which is similarly more portable across the supported systems.
Closes #4354 (closed)