Correctly reinstall tarball-based Cordova plugins if they change between builds

Ideally we would also restart the running process and restart the emulator with
a new app. Unfortunately it is not as easy right now.
Fix the HCP on a route (like /something) problem on iOS

addresses #2632 partially (only iOS)