Remove the temporary file in do_git_info()

If do_git_info() is called in a pipeline, it runs in a subshell.  In
that case, the main shell doesn't know the value of TEMPFILE and can't
remove the temporary file.