filter-branch: Fix renaming a directory in the tree-filter