Fix silly undefined output in the case of an undefined exception
Fix configuration file generation on first run