Temp fix for Ruby 4.1

Rails.root is nil on Rails 4.1 changing before_configuration to before_initialize