Add check for doubly-added files