require_package(): try harder to evaluate resource

Change-Id: I2200e3125621a9d07bdad5d351ec50f0998ab33f