Updated helper to detect Joomla version - if version 3 need to use different method to get config details