Check for file existence before launching the editor.
Remove unused variables.
Check for duplicate source files.
Compare filenames by absoluate paths.
Convert src and dest to absoluate path before comparison.