script for building phonegap apps from cli