Adding parameter to set different tmp directory

Adding parameter to set different tmp directory
Merge pull request #13 from mkelderm/master

Adding parameter to set different tmp directory