moved codegen checksum filename to const

enhanced the checksum violated exception.