fix pdf build script