Use SPARK_LOCAL_DIRS to create tmp files
Copy, use getLocalDirs from Spark Utils.scala
Merge pull request #107 from shivaram/master

[SPARKR-136] Use SPARK_LOCAL_DIRS to create tmp files