Ensure pragma checksum is prepended to generated file

Fixes #160
fail on my part :+1: