fix tmpdir field

it was broken with minimal view with the new "open directory" shortcut
Merge pull request #1011 from MrVaykadji/patch-1

fix tmpdir field