Silverstripe 3 fixes

- Correct typos
- Update version restriction so composer will load the module in SilverStripe 3
- Remove call to deprecated ereg()