Corrected the pdf build script.