Make it work cross-platform.

More robust finding of the initial line

Sort results which have same distance alphabetically
ok better lineno algorithm
Merge pull request #8 from petkaantonov/master

Make it work cross-platform.