locations to $PATH before trying to run sysctl.
a backwards-compatible way (prefer uname -p, but fall back to /sbin/sysctl -n hw.machine_arch).