fix Joomla 3.x check for package (issue #632)