Make git-branch-cleanup script more robust