file-parser/elf: Pass filter to prune paths earlier (performance)

Greatly improves performance when few/no paths are selected.