Fixing travis script.

Correctly checking if the commit is a pull request.