Correctly extract the version from the documentation directory