template with extension .r are supported on case-sensitive file systems

Fixes #115.