fix problems mentioned in #17

1. avoid logging confirm answers into completion list
2. regard `cd  `(no args) as "select no host" in all functions.(and `cd /` for all)