Version substitution 724

Fixes #724

I have tested this by setting `version = '0.1.2-99-ge08b10f'` in `conf.py` and seeing an error:

``gettingstarted/tutorial/vagrant-setup.rst:202:ge:vagrant-setup``

without this fix, and no error with this fix.
This doesn't follow the coding standard; needs some line breaks at the very least.