Improve a variable name

   dir ->
tmpdir
^^^