Added check for SPARK_HOME in EC2 executable