[FIX] report: windows: lower level of file opening/closing, which to find wkhtmltpdf

* Use of 'which' to find the wkhtmltopdf binary (allow the win32 service to find it)
* Use of mkstemp and manual close of the file descriptors