Update homebrew manifest to avoid using deprecated 'brew which' command. Ensure cmake gets updated as dependency to other tools