local.conf generator due to problems with sed