pass current dir to included template runtime

pass current dir to included template runtime
fixed for a template can not include a template that include another
template if the default basedir not right

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

if the default basedir "." not  in the templates dir ,then A cannot not
include B!