Whould not it be better if we place 
<pre><code>Yii::setAlias('www', '...');
Yii::setAlias('wwwroot', '...');
</code></pre>
inside the config generated by "template" command?