* commands.py: Introduce a real select_file() method * commands.py: rename select_file() to select_path() * move SW matching to a generic utility function