More robust hash-files.