Rename ChangeDirectory to SetWorkingDirectory.
Move path assignment into a context.
Prevent setting an invalid directory.