Added checks for brew and git