update ec2 script to support released Spark 1.2.0, fix deprecation warning from ElementTree