update build script to 2.3.1