Add scala config to circumvent https://issues.scala-lang.org/browse/SI-6897