Deal with all other uses of this.cwd etc and convert to pwd() on current shell instance.