RUBY-16065: sometimes :io option is absent so let's default to $stdout