Allow for regex in --validPaths

match vs. indexof to allow for regex methods