[SPARK-2894] spark-shell doesn't accept flags

As @sryza reported, spark-shell doesn't accept any flags.
The root cause is wrong usage of spark-submit in spark-shell and it come to the surface by #1801
For consistency, could you use the same approach that we use in `spark-sql` script?