Copy, use getLocalDirs from Spark Utils.scala