I don't really get how the code is setup well enough in order to fix this, though I tried.
Any REPL, either Scala's or sbt's returns the same answer, in 2.11 or 2.12. I suspect the issue is with the res2, Option[String] = "None." but no answer satisfies the interpreter.