placed packages checksum generation inside conditional that first checks...

... for its existence