Added method to recursively create directory

It’s in Haste class because it should be dropped as soon as Contao
supports that feature.