Create the configuration directory upon saving, if needed.