This is just a few trivial improvements I made when looking at T661.
install_pkgs() now uses python structures instead of string parsing (no
current code needs that, more reliable). Improved debug messages when
command fails. When installing commands, we now inform about it on INFO
level (the full command line executed including all packages is still
visible on DEBUG level).