Fixed includes_template? method to check for the type of template

issue #253
https://bugzilla.redhat.com/show_bug.cgi?id=1122712