[SPARK-3985] [Examples] fix file path using os.path.join

I was just trying to make this consistent with other code in python/pyspark/**.py. It is OK if you believe add a '/' is better.