[bin] get_preserved_libs: extend output, group by package