Updated deployment script to wrk around https://github.com/travis-ci/travis-ci/issues/1675 .