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

I said that thinking it is usually inconvenient to build the whole thing again, if suppose you are testing if a feature works well in either version. May be I will still try to guess that scala_version automatically. If both present then use the one provided in spark-env ?