Propagate version info into salt config and use to build.

Fixes #1043.