Change the way on reopening Rake.application.

See: http://patmaddox.com/2010/11/16/how-i-reopen-classes-in-ruby/