Improve runtime config file handling to prevent buildup of temp files.