Fix bug in travis-ci test script.