     !!process.platform.match(/^win/)
 
   isWindows64Bit: ->
-    fileExistsAndIsAccessible "C:\\Windows\\SysWow64\\Notepad.exe"
+    fs.existsSync "C:\\Windows\\SysWow64\\Notepad.exe"
 
   x86ProgramFilesDirectory: ->
     process.env["ProgramFiles(x86)"] || process.env["ProgramFiles"]

path = require 'path'
fs = require 'fs'

fileExistsAndIsAccessible = (file) ->
  try
    fs.statSync file
    true
  catch e
    false

module.exports =
  getHomeDirectory: ->

    return false unless isWin32()

    vsPath = path.join x86ProgramFilesDirectory(), "Microsoft Visual Studio 10.0", "Common7", "IDE", "devenv.exe"
    fs.existsSync vsPath

  isVs2012Installed: ->
    return false unless isWin32()

    vsPath = path.join x86ProgramFilesDirectory(), "Microsoft Visual Studio 11.0", "Common7", "IDE", "devenv.exe"
    fs.existsSync vsPath
