doc: fix getting the package version