Fix bug in the `lgtdoc` tool that prevented documenting libraries