Update build script to fail on error.
Merge pull request #248 from benbjohnson/build-fail

Update build script to fail on error.