fix is_installed problem when pkg database has been cleaned before
Merge branch 'smartosfix' into scalp