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

Is it maybe simpler to just add a / ? This makes it look like the path is platform independent but it isn't as the following path always has /