phinze/homebrew-cask — pull request #2026 by rolandwalker (2013-12-10 03:25:46+00:00)
Title: safer test for currently running app

The previous version could fail if the specified bundle was not installed.
Here we tell "System Events" until determining it is safe to do otherwise.