Let the tmpdir be injectable.
Merge pull request #33 from blambeau/master

Let the tmpdir be injectable.