Fixed incorrect retrieval of joomla version.