Calculate md5 based on file contents rather than file name