Capture model name

BSD `uname` lacks the `-i --hardware-platform flag`. Replace it with
a sort of ugly `ioreg` hack.