Fix 'cd' command to handle whitespace.

Don't use cmd_str.split()[1] because it fails if the directory name
contains whitespace.

This fixes the primary issue in https://bugzilla.redhat.com/show_bug.cgi?id=1092682