update build scripts for buildbot