reverted path comparison improvement

fixes https://github.com/nodeca/hike-js/issues/11
added a flag to stop searching on first found path

fixes https://github.com/nodeca/hike-js/issues/10
Merge pull request #12 from rlidwka/find_all

patches to fix issues with 2.x