Fix md5sum to work on recent SmartOS,

also add fallback to look for ``md5sum`` or ``md5`` in ``$PATH`` if everything else fails.