Fix cordova plugin add with trailing slash