Recreate "platforms" dir if it was deleted.

If the platforms dir is missing, cordova won't complain any longer. It will
think that no platforms are installed. The dir will be recreated when running
cordova platform add.