Ensure unique names for files in swap, backup, and undo