Added support for Contao 3.0 and 3.1