From ca0c49a70731abf75875dce9228c663d0c576038 Mon Sep 17 00:00:00 2001
From: Nimit <nimitagg95@gmail.com>
Date: Wed, 20 Feb 2019 16:04:03 +0530
Subject: [PATCH] sanitizing the path and update package json

---
 lib/LocalBinary.js | 2 +-
 package.json       | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/LocalBinary.js b/lib/LocalBinary.js
index 1fdc25b..7c46a4e 100644
--- a/lib/LocalBinary.js
+++ b/lib/LocalBinary.js
@@ -78,7 +78,7 @@ function LocalBinary(){
   this.binaryPath = function(conf, callback){
     var destParentDir = this.getAvailableDirs();
     var destBinaryName = (this.windows) ? 'BrowserStackLocal.exe' : 'BrowserStackLocal';
-    var binaryPath = path.join(destParentDir, destBinaryName);
+    var binaryPath = '"' + path.join(destParentDir, destBinaryName) + '"';
     if(this.checkPath(binaryPath, fs.X_OK)){
       callback(binaryPath);
     } else {
diff --git a/package.json b/package.json
index 48b47d4..aabf699 100644
--- a/package.json
+++ b/package.json
@@ -20,6 +20,7 @@
     "https-proxy-agent": "^2.2.1",
     "is-running": "^2.0.0",
     "ps-tree": "=1.1.1",
+    "selenium-webdriver": "^4.0.0-alpha.1",
     "sinon": "^1.17.6",
     "temp-fs": "^0.9.9"
   },