Bugfix: template should be looked in $DOCROOT
Bugfix: index and its template should be looked in $DOCROOT