Fixed the templates being used only from subfolders (see #3)