Removed hard coded /tmp in favour of real OS temp

Now supports windows correctly.

Fixes #10 and removes the need for #11.