upgrader: package detection fix
upgrader: package detection fix

* Handle detection of packages properly when packages include
  code.

Signed-off-by: Lars Holm Nielsen <7eaffca9f7cd98839b5821d0d23e09ff764b82cd@cern.ch>

tiborsimko/invenio,inveniosoftware/invenio,inveniosoftware/invenio,tiborsimko/invenio