Add head_with_calc_md5 func to fix leo-project/leofs#153