prep-packages: Add license checking.

This makes 'prep-packages' check the contents of the license variable
against the files in '/usr/share/licenses/common'.