updated spark-env script