Update template with more configs & fixes

fixed conditional flags/argv not working.  openning brace needed to
follow the condition...