Fixed #328: SFTP and FTP setConnectionRoot is now consistent when failing.