Some rather important little fixes to filter 'pmo' itself from the grep
results. We should rewrite this without using grep, etc. TODO.