mxcl/homebrew — pull request #24104 by avalanche123 (2013-11-09 00:38:22+00:00)
Title: fix g++ versions support

when compiling a c++ project (mesos) with a homebrew gcc-4.6, gcc was used instead of g++, which led to symbol not found errors. by fixing regexp to allow optional version string in executable name, we ensure that g++ of the right version is used