Fix template_dir on Fedora 19 to resolve issue #18