Remove obsolete code that referred internal zsh history.

Use of HISTFILE and fc was refactored a while ago.
Do not record match directory in the index.

Let the script caller take care of adding match to the history.
Streamline options processing.

case statement was too complicated.  List option is now processed
at one place.  Removed unnecessary variables.