Modified scoring so that wildcards count the number of path components matched.