Fixed cd: no cd above root-dir.

A cd that is used to jump above the root directory, fails.