Fix error writing tmp file using plugin with remote unix system
Merge pull request #1 from TheCry/master

Fix error writing tmp file using plugin with remote unix system