move plugman.prepare to cordova-platform