Extract some stuff from cli to basic_cli
Fix the config files logic and implement the additional logic necessaray to tail the current log file