fixes check package installed status

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>