set sparkFilesDir as a current local directory, in localmode.