cleanup tempdir

Hi,

I noticed bundler sometimes left (empty) temporary directories behind. Not quite the end of the world of course, but still. I'm not very familiar with the codebase and am therefore not quite sure this is the best way to fix it, so please tell me what you think.

\- Felix