Make sure we don't try to templatize folders when they look like they're files