move template mrc to -rcfile
fix template inclusion logic
add missing quotation marks