[ticket/10844] Make sure ext_path has no trailing slash

PHPBB3-10844
[ticket/10844] Add unit tests for different root_paths

PHPBB3-10844