Fix issue #2 (about IsADirectoryError bad format)