Fix travis script errors