update build script to latest