changed for shell-mode:
When cd is commanded without comint-mode stuffs, the emacs cannot follow the current directory. It makes wrong completions.
I think we should use comint-send-input for cd or any other commands changing the current directory.
Merge pull request #18 from y2q-actionman/fix-for-shell-mode

changed for shell-mode: