'templates' dir in package definition should 'gen'