fixed bug: if no merge was performed, program failed to find the temp file.