Fix hashing of missing files and a really silly hash comparison