Streamline options processing.
Streamline options processing.

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

pavoljuhas/smart-change-directory,pavoljuhas/smart-change-directory