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