Fix bug where installing a new version of an app wouldn't necessarily replace the old version, leading to multiple 'new foo' buttons.