Modified spark-shell script to enable to interpret -i option