Fix #487: Use generated toc as base for ebook generation