fix detecting installed packages in fink and updating certificates