Reset compilation errors before running an sbt command

compilation-mode needs to have its state reset between each run of the compiler. Otherwise, new errors get mixed with old error and jumping to the error's source doesn't work at all.