fix 2 bugs in PE repather
fix multiple typos in CPathFinder::AdjustFoundPath
and replace insane if-tree with a simple for-loop