phonegap: fix 'add platform' for version >= 3.6.3