Improved the plugin building and packaging tasks