build.sh: update build script for commonized d2 defconfig