Improve find-script behavior

find-script will now try find better matches by comparing the path as
well as filename. Compares each match and takes the longest common match
between target path and each script path