       return
     pattern = /\d+\.\d+/
     location = locations[0]
-    execFile(location, args, (error, stdout, stderr) ->
+    child_process.execFile(location, args, (error, stdout, stderr) ->
       if not error?
         if stdout? and stdout.match(pattern) or stderr? and stderr.match(pattern)
           global.cachedPythonLocation = location

  pythonLocation((python) ->
    if python?
      args = [cliLocation(), '--version']
      execFile(python, args, (error, stdout, stderr) ->
        if not error?
          currentVersion = stderr.trim()
          log.debug 'Current wakatime-cli version is ' + currentVersion


      log.debug python + ' ' + args.join(' ')

      proc = child_process.execFile(python, args, (error, stdout, stderr) ->
        if error?
          if stderr? and stderr != ''
            log.warn stderr
