Changed ->cwd to ->internal->cwd, fixing bug