[ticket/11508] Move helper functions to path_helper class.

PHPBB3-11508