Also: check sets `self.__directory = curr_dir` which is used by cd. We could instead use self.GetDirectory().