change config.previews.dir to config.previews.tmpDir
Merge pull request #853 from stuartf/issue-853

Change `dir` to `tmpDir`