Fix `isdir` checking inside of SFTP class

We have to use `stat` instead of `lstat` inside `isdir` method, since the first one returns `True` even for symlinks to folders.

The fix is very important when we need to download some folder that contains a symlink to another one.