phonegap fix plugin manager for version >=3.5