Fixed a bug that sage-shell-tab-command does not complete words in some cases.