Fixed issues with PhoneGap deploy.