Add a script to set the version.

Adding a version scrip to read the yaml file and git rev from disk when
building a machine.