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.
Maybe you should just put all the code inline, not sure having a separate module is worth it. RTD may still be an issue, e.g. they probably lack `enchant`.