Updated build script to check if appledoc is installed