Get CSS file extension from the template option if given.

This allows the template file to have the correct extension if
it's not CSS.

Fix #173
Yeah, I think so.