Fix for --freeze option

The --freeze option never worked for me. I would try this:

rails --freeze myapp

and would get an error when it tried to freeze the app.

Here's a patch. I'd appreciate feedback and/or +1's.

http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/1743

Thanks! Jeff