Add support for passing the Scala version from outside.