config.c: Fix a static buffer overwrite bug by avoiding mkpath()