Fixing installed file detection by using multiple grep statements.