filter_branches: updated to use new directory structure