properly detect pull request in travis rake task