[SPARK-3875] Add TEMP DIRECTORY configuration

Related to SPARK-3875.

Thanks @srowen for the comment. That's more clear!
Currently I am running Spark 1.1 in Standalone mode. And I have set the 'SPARK_LOCAL_DIRS' to data disk,  which will store the broadcast Files in the target directory. However, the dependencies for executors will be fetched and stored in the /tmp/ directory.
And the dependencies will not be removed.
Like the snappy dependency, for example:
"snappy-1.0.5.3-f4880c9f-95d9-4ab6-b1c8-8686d0b88f42-libsnappyjava.so"
So the /tmp/ directory will grow large.