Add IsPath filter

For implementing --ignore-dir in terms of relative paths
Use IsPath for --ignore-dir matches