improve spark_ec2 script.