Retrieve the version number correctly for the docs.