   # Returns `true` if case sensitive, `false` otherwise.
   isCaseSensitive: -> not fsPlus.isCaseInsensitive()
 
-{statSyncNoException, lstatSyncNoException} = fs
-statSyncNoException ?= (args...) ->
-  try
-    fs.statSync(args...)
-  catch error
-    false
-
-lstatSyncNoException ?= (args...) ->
-  try
-    fs.lstatSync(args...)
-  catch error
-    false
+statSyncNoException = (args...) ->
+  if fs.statSyncNoException
+    fs.statSyncNoException(args...)
+  else
+    try
+      fs.statSync(args...)
+    catch error
+      false
+
+lstatSyncNoException = (args...) ->
+  if fs.lstatSyncNoException
+    fs.lstatSyncNoException(args...)
+  else
+    try
+      fs.lstatSync(args...)
+    catch error
+      false
 
 BINARY_EXTENSIONS =
   '.ds_store': true

#
# [fs]: http://nodejs.org/api/fs.html
fsPlus =
  getHomeDirectory: ->
    if process.platform is 'win32'
      process.env.USERPROFILE

  '.rmd':      true
  '.ron':      true

isPathValid = (pathToCheck) ->
  pathToCheck? and typeof pathToCheck is 'string' and pathToCheck.length > 0

