Fix Pathfinder::getBestPaths().

* Also extract out a function isDefaultPath() and comment on its deficiencies.