Update checkbuild to exit rather than return.