When installing nginx with --with-passenger, ensure that the Homebrew Passenger is used instead of the one in PATH