Make sure tempfile doesn't get overwritten