Update build.sh

Added a `make check` to the build file.