Fix bash cursoring bug with update_terminal_cwd.

Fixes #58.
Merge pull request #78 from Impromptu/terminal-cwd

Fix bash cursoring bug with update_terminal_cwd.