syncrepo: Properly clean up .~tmp~ dirs

Merged Sven-Hendrik Haase requested to merge delete-rsync-tmp-files into master

We noticed that sometimes rsync becomes confused and leaves .tmp dirs around which inhibits syncing from that point forward.

Merge request reports