Prefer gawk over awk if both are available.

This fixes `rbenv help` on Solaris 11.1.