adjust language/os logic to correspond to https://github.com/travis-ci/travis-ci/issues/2320