fix wrong grep call for prefix count

This makes false positive more likely.
For the sake of compatibility mac vs. linux, we ignore that.