Add check for mavericks command line tools and mountain lion
Rename function names. Fix callback git being checked twice.