Improved epub ToC handling.
Fixed makeindex invocation.

For some reason, the current version of makeindex refuses to write to files in
another directory. That's okay; copying the index artifacts to the current
directory will fix that.