Added automatic default config file generation in case it desn't exist.