fifoirc: check if fd is not None
forrest: misc. changes

* no more duplicated suggestions
* case-insensitive matches
* added command-line arguments for font, histfile, bg color and fg color
* select now expands the current match before selecting