Fix logging of plugin/theme install/upgrade via WP-CLI