fix(scripts): refactor ebook convert a bit