Update Travis CI and AppVeyor scripts