Abstract getting the file hash in order to support Linux