Fix exitcode of build.sh