update build script to work with bamboo