Make TemporaryFile append a slash to tempDir

I could not find in the documentation that I am required to provide tempDir with a trailing slash, and in my opinion one should not be required to, hence this change.

Umh, will this work for Windows?

Cheers,
Ezra.