Fix #4202

If pkg.install returns a string append it to the comment and make
sure changes is a dict