Avoid starting SparkContext in remote mode.