opkg: make PKG_UPGRADE available during preinst hook