fixed config generation if no config file was present before