Extracted the --md5 option from Wolfgang Neuman's patch