Find the closest (most relevant) path

For https://github.com/codeparty/derby/issues/420

Would something like this be feasible? It seems to solve my problem.

(the modification is in two separate repos)