add config file checksum function to support xcfg and RAW file.