 
     # Make sure node-gyp is always on the PATH
     localModuleBins = path.resolve(__dirname, '..', 'node_modules', '.bin')
-    if env.PATH
-      env.PATH += "#{path.delimiter}#{localModuleBins}"
+    if env.Path
+      env.Path += "#{path.delimiter}#{localModuleBins}"
     else
-      env.PATH = localModuleBins
+      env.Path = localModuleBins
+
+  addNodeBinToEnv: (env) ->
+    nodeBinFolder = path.resolve(__dirname, '..', 'bin')
+    pathKey = if config.isWin32() then 'Path' else 'PATH'
+    if env[pathKey]
+      env[pathKey] = "#{nodeBinFolder}#{path.delimiter}#{env[pathKey]}"
+    else
+      env[pathKey]= nodeBinFolder
 
   installModule: (options, pack, modulePath, callback) ->
     installArgs = ['--userconfig', config.getUserConfigPath(), 'install']


    env = _.extend({}, process.env, HOME: @atomNodeDirectory)
    @updateWindowsEnv(env) if config.isWin32()

    installOptions = {env}
    installOptions.cwd = options.cwd if options.cwd



    env = _.extend({}, process.env, HOME: @atomNodeDirectory)
    @updateWindowsEnv(env) if config.isWin32()
    @addNodeBinToEnv(env)
    installOptions = {env}

    installGlobally = options.installGlobally ? true
