Fix Travis CI config to prevent build fail.

I recently tried to copy the Travis CI config from BotKit to use it in our internal project, and found a build error issue  due to some shell script logic error.