Fixed missing trailing file separator on tmpDir