Remove case insensitivity for template names. This fixes issue #729

This fixes issue #729 and allows a define to be added inside the template.

Signed-off-by: NotZippy <notzippy@gmail.com>