Fix for jtag using "cortex-m0" target
There seems to be issues with using the default target of cortex-m0
with the JLinkExe "reset" command. We can now read the attributes the first time without needing the "reset" command.
Also backport a fix for updating an app when the app is installed multiple times.