Update plugin script and template to work with plugman changes

Reviewed by Bryan Higgins <bhiggins@blackberry.com>