Fix finding Spark UI when running on Mesos.

Spark UI is on localhost when spark.master is set to a mesos URL.