Small refactor on check_travis