Fix remaining cases of os.tmpname and git.util.tmpfile