fix problems with temp dir
Merge pull request #50 from papplampe/master

fix problems with temp dir