Fix for https://github.com/travis-ci/travis-ci/issues/1800.