[SPARK-4504][Examples] fix run-example failure if multiple example jars present

Fix run-examples script error during multiple jars.
Modified to support failing fast similar to assembly.jar

Author: Venkata Ramana G <ramana.gollamudi@huawei.com>
Similarly, `compute-classpath` logs the messages to stdout instead of stderr.