Remove implicit gh-book dependency.

Instead of looking for another OPF file, look for something that
extends TocNode. This is generic enough to work for both atc and
gh-book.