fix md5 check on Mac OSX which indeed requires `$4` rather than `$1` (as it was before)