Use grep instead of sed

sed does not have a valid signature file, wheras grep does. grep also
has a nice dependency we can find, as well as a check function.