improve check for available packages in solaris, update #2920