test/parser: Make parser_scandir() ignore files with path len less than dir