Only copy apps specified by the user

There was a bug where apps were never getting copied. There was also a bug
where the latest saved version of an app was being compred to the original
app.
Forgot to commit this...

Fixes a semantic error
Merge pull request #5167 from dimagi/exchange-fix

Only publish specified apps to the exchange.