Handle OSX's md5sum -r being slightly different to GNU Coreutils

OS X's md5sum uses one space inbetween the sum and filename, not two. Since they both have two items, we can handle both by just fetching the first and last item.