Changed temp file names to prevent race conditions in config file creation/deletion.