fix check_md5 on OS X

When given a file argument, different versions of md5sum use a different
output format. By using stding, we ensure the output format is just the
MD5, this way we don't need to try to parse that output. This parsing
step was failing on OS X.