Ensure directories exist for config files