shell.c cwd updated after calls to chdir()