Changed error when searching for template dir