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.
Merge pull request #283 from klynton/master

Add a script to set the version.