tmp file name was hardcoded causing problems when two instances were run
in same dir.