execute included template set basedir,otherwise nested template (third templated included by parent template)

eg: template A  include template B , and template B include template C