Added some brew detection stuff for replacing BSD cli tools