make tmpdir configurable
Change tmpdir to @tmpdir
Merge pull request #200 from hunner/tmpconfigure

make tmpdir configurable