Fix 'cd' command to handle whitespace.

Don't use cmd_str.split()[1] because it fails if the directory name
contains whitespace.
Merge pull request #214 from jwakely/chdir-whitespace-bug

Fix 'cd' command to handle whitespace.