Fix test for OS X in build.sh