This fixes issue #312. The code beautifier takes a file with the generated code as input, which prior to this fix, was created under the assumption that the folder structure existed. This caused the code generator to crash. This fix ensures that the folder structure is created.