gitk: Fix a couple more bugs in the path limiting