home-brew and macports checking extravaganza

Update the pro file to check for port v brew
Fix the makefile.osx check bug
Some formatting fixes