Minor fixes. Bypass 3rd stage md5 generation if the MD5 of the
whole file has already been found before.