Strip trailing "/" from logging directory

Before it was printing: Logging events to
file:/tmp/spark-events//pysparkshell-...