Making Net_SFTP::chdir capable of handling the empty string.

Updated patch after hint from bantu.