Small fixes (templating functions)

- return false
- $name instead of $template_name
- the variable $default_directory is not needed anymore