[travis] Fix bug in bash if statement.