Check if file exists before trying to get the MD5