travis: fix PR detection logic