Add fix for rails 4.1.0.beta1 and Rails::Engine::Railtie.engines