Updated output.rb to use contantize instead of const_get to avoid issues with different versions of Ruby.