Update chdir to reflect dir change.