Allow configuring default template suffix

Fixes #2459