Propagate version info into salt config and use to build.

Fixes #1043.
Any way to keep this in sync with the build files? Comment here and there?