imagebuilder: clean opkg files if requested (patch from #9866)