Fix travis command status detection