Use Ruby Digest::MD5 instead of md5sum

The Ruby Digest::MD5 API is more consistent than trying to use the `md5sum` command line tool which has different names and response formats on different operating systems.