Fix if statement in TravisCI configuration