Add missing requires for activesupport

and make the regex for Factory better by only looking at the end. It should now work or FactoryFactory.