Update package template for new APIs

Remove use of deprecated APIs in the package generator.

Closes atom/atom#3764