libs/ipkg: add overlay_root(), determines the overlay used by opkg