Fix travis setup conditions in script files.