Add support for OS X's md5 utility

This change checks for LSB's md5sum utility and OS X's md5 utility (in
that order) and uses whichever it finds.