Do not get tamplate dir from YAML file

YAML files are only to get static information, not for doing
configuration.