fixed installed packages detection