Auto set book title to image directory

When adding an image directory set the book title to the name of the
directory (which is usually the name of the manga/chapter)

Fixed a slip with isdir