Changing and if statement to make travis CI work fine.