Fixed bad windows temp file.

I've even "tested" it as much as I compiled couch_plugins.beam and replaced the old beam file of my windows CouchDB installation and posted some data to /_plugins.
Worth also fix path concatenation by using `filename:join` to not care about `os:getenv("TMP")` trailing slash.