Fix tab-completion in remote shell by setting default-directory