Fix removing temporary file. Fixes #160.
Merge pull request #165 from edogawaconan/master

Fix removing temporary file. Fixes #160.