The different supported template paths are now only added if they exist.