Fix insecure tempfile warning

Fix #108