Fix dependence in Makefile, and bug when reading new md5sum

Oh my coverity... This is a pretty serious problem