update build_doc.sh to handle new output directory