Remove the global temp file naming and duplicate code.

The tmp file can be created automatically.
Because I used it on multiple subversion repos, doing that I do not to change the tmp file for every repos.