Support for empty subdirs
tvim templates: display slightly more sensible error message on errors