revise some shell scripts to make them syntactically more similar to Spark standard