Make md5_check general.

Accidentally committed a debug version in ce133568, which hard-coded
it to work only with the libraries (which is what I tested it on)
rather than binaries as well.  Oops...