fixes #2939 - autocompletion doesn't work

This patch makes it work somehow, but there is a lot to improve
  - performance - with every <tab> hammer is triggered with all the config loading, log setup, command generation. We may need different approach and preprocess the data 
  - options completion - with current algorithm options completion does work only for one option