[ticket/12529] Use root_path in controller\resolver to check the template dir

https://tracker.phpbb.com/browse/PHPBB3-12529

PHPBB3-12529