[ SPARK-1812] Adjust build system and tests to work with scala 2.11+ repl port.

How about if SCALA_VERSION is set, then we can use that. If it's not set, we try to guess it. Basically I just don't want users to have to set it in the normal case (they are just using a single version).