Update doc generation script.

* Allow building locally for testing purposes (output in ./build)
* Don't require root