Fix ssh url match in plugins:install
Trim definition name more effectively
Handle HTTP(S) URLs correctly in plugins/install