[SPARK-2817] add "File.separator" support, create a "testTmpDir" outside the rewritePaths