Use user defined $SPARK_HOME in spark-submit if possible

Change-Id: Ifa5eddff87e9c7eb5e64349a47c79aa8764ce7e9