[HOTFIX] Fix build break in 1a2508b73f6d46a0faf7740b85a5c216c925c25a

org.apache.spark.SPARK_VERSION is new in 1.2; in earlier versions,
we have to use SparkContext.SPARK_VERSION.