doc: get version from package.json without cli.js

This allows building of documentation without having
to install all dependencies of npm.