Added mkdirs for conf file generation. Generating the file directly in the right place, no rename required any more. When reading, validating that the placeholder values have been replaced with something else.