Correctly propagate build failures to sbt's exit code.

Review by @cvogt