[darwin] binary build script fix a couple errors