(maint) Change how cert_whitelist deals with files

Prior to this commit, the whitelist was not being used correctly and the
test was failing. This commit hopefully fixes that issue by changing how
grep is used.