Removed second fork

Generating the .cfg files could be done in childs but this is slower as generate the .cfg files in the parent process