gitk: Fix bugs in the Find function