mocked up a slightly modified, newer version of the make_epub method
adding the dir_exists method as a utilty