Set `next-error-last-buffer' after running sbt command

Ensures that functions that go to errors like `next-error' really choose
the sbt buffer and not previously opened compilation buffers like grep.