Compute checksum internally without calling md5sum

tested on 64-bit linux, may not work or even build on OSX or Windoze.