phantomjs: build from source.

Closes #22446
phantomjs: add bottles.
bottle: loosen prefix grep check.

/usr/local is in lots of things unrelated to Homebrew so be more specific and look for opt instead.
cmake, jpeg, mpfr: add missing cellar :any.
brew-test-bot: allow skipping bottle creation.