Handle multiple custom deploy conditions

There was a regression introduced by the recent change in deploy
handling in the case where 'deploy.on.condition' is an array.
In such cases, the `if` statement is malformed, leading to
https://github.com/travis-ci/travis-ci/issues/2524.
This fixes this case.

Also, fix the failure_message spec.
Yield `script` in specs