Better output of karaf commands, simplied code