Support template_directory & data_directory from yaml configuration