fix temporary directory removal for TempArchive

This fixes the removal of the directories created for TempArchive during push from the graph/_tmp/* directories.
I think this function should be rewritten to create tmpdir itself and drop dir argument. I don't like idea, that functions can delete directories created by me.