set SftpException as cause when listDirectories throws IOException

* Amendment: changed variable name in listDirectory
merged