[#484] Fix protocol stripping when adding a plugin from a path.

Thanks @regnete for reporting the issue and offering the solution.

Thanks @macdonst for verifying both the issue and solution!