Fix bash cursoring bug with update_terminal_cwd.

Fixes #58.