Substitute version number into scripts at build time.

...plus associated build system upheaval!