Fixed autocompleter sometimes removing words

This fix makes the shell completer behave more like other shell completions. Not deleting potential commands. It should fix #149