change previews.dir to previews.tmpDir