dependency bug in 2.0.1

I was wondering if anybody has taken a look at this yet? (Using Rails
2.0.1 and Ruby 1.8.6)

Here's a simple use case for reproducing...

1) create a test app...
rails test_app

2) edit config/environment.rb and add...
config.to_prepare do
end

3) run script/server <- no errors

4) run script/console <- dependency error

If any core people know how to fix this dependency error, I can create
the ticket for it, but I'm not sure what the best fix is for it
myself.

Thanks,
Andrew

Ticket for it http://dev.rubyonrails.org/ticket/10520