filter-branch: Fix to allow replacing submodules with another content