Compute list of packages to check
Make use of ($) where needed