Implemented recursive directory creation, curtesy of Michel Maas (AxaliaN)