Fix segfault in cfgparser standalone executable