Propagate version info into salt config and use to build.

Fixes #1043.
Merge pull request #1044 from jbeda/release-version

Propagate version info into salt config and use to build.