Merge pull request #14 from cordova-ubuntu/connectivity-dependencies

Add connectivity dev build dependencies
diff --git a/bin/templates/project/cordova/lib/build.js b/bin/templates/project/cordova/lib/build.js
index 6016cb3..2860f30 100644
--- a/bin/templates/project/cordova/lib/build.js
+++ b/bin/templates/project/cordova/lib/build.js
@@ -2,7 +2,7 @@
 
 /*
  *
- * Copyright 2014 Canonical Ltd.
+ * Copyright 2014-2016 Canonical Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -345,7 +345,7 @@
 
         rl.on('line', function(line) {
             rl.close();
-            if (line !== 'Y' && line !== 'y') {
+            if (line !== 'Y' && line !== 'y' && line.length !== 0) {
                 deferred.reject(new Error());
                 return;
             }
@@ -399,7 +399,7 @@
 
         rl.on('line', function(line) {
             rl.close();
-            if (line !== 'Y' && line !== 'y') {
+            if (line !== 'Y' && line !== 'y' && line.length != 0) {
                 deferred.reject(new Error());
                 return;
             }