utest.sh now builds correctly for Macintosh. It turns out if you really want to differentiate between Mac and Linux, you should use platform not os.