Alternative implementation of pkg_get_myarch() using uname. This one even
works on Linux (and I assume OS X). It does not currently capitalize
"FreeBSD" as "freebsd" the way the existing code does, which may or may not
be a bug.