Simplify params to _findTreeMatch

Signed-off-by: Michal Čihař <michal@cihar.com>