chore: Fix docgen menu and make git fetch of docviewer work for repeat use

Doc gen script cd to lib directory was breaking relative links for package includes. Also put the code back in to strip out images from the README.md (which aren't supported by docviewer) and added a line to do a git fetch when the docviewer directory exists but is possibly out of date.