[CB-7470]createmobilespec.js --global / --globalplugins shouldn't clear $HOME/.cordova/commonlibs
[CB-7469]createmobilespec.js --global is broken since the new plugin test infrastructure was added

Updated script works on amazon-fireos as well with --global flag.