[opkg] close open file, fix typo.