add config file checksum function to support xcfg and RAW file without device connection.