bug: target argument should override ENV
Concat *-template.js as last