Fix bug in build-apidocs.php