Corrected conditions on travis build for pull requests