tree-walk.c: ignore trailing slash on submodule in tree_entry_interesting()