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.
Merge pull request #2 from tadanagao/master

Remove the temporary file in do_git_info()