build: fixing table and toctree generator

Signed-off-by: Sam Kleinman <samk@10gen.com>