libopkg: pass PKG_UPGRADE variable to package scripts