Detection may not be the most reliable if one of the duplicates is not seeing updates and happens to install first. I'll keep pondering a more reliable way to do this. The only ideas that come to mind are a little too hacky and unsafe for my current standards.