[travis] fix travis script correct error code returning