tools: findleaves: fix invalid syntax