Re-enabled shell features such as cd.
Functional-style implementation of split.