fixed a problem with fchdir() that broke "cvs -d" in smbsh