Change exec cmd to 'wkhtmltopdf'
Flush temp source file after writing