Update build.js

for mac