Fix options validation for templates in package.

When used as a package minit wasn't correctly processing the options.