Replace filepattern with pathspec for consistency