If no match is found, match targets anywhere

If no matches are found, try matching target files for containment
rather than startswith.