This ensures that the script actually fails if the build didn't succeed.