another bugfix related to cd -
apparently you can't cd back to the original directory without breaking
awareness of the present location... strange.