Fix for HostContext._chdir. Fixes the scp shell.