Probe nm output instead of hardcoding supported variants

Apparently OpenBSD has their own variant which doesn't support --version,
but produces the output we want.  This change refixes the OpenBSD
toolchain.