Slightly more robust error detection, strip _ from plugin name to get jar name.
Use scripts config infrastructure and targetHost.
More error checking