Add spark.tmp.dir to set temp directory for spark

Related to SPARK-3875.