[ruby/irb] Change debug test workaround only enabled when output is