Rewrote logic for checking outdated and uninstalled formulae