Set more safe commands to buid-docs script.
Fix typo on doc.