setup ebook cache temp dir in sync function