diff --git a/src/Executor/Result.php b/src/Executor/Result.php
index <HASH>..<HASH> 100644
--- a/src/Executor/Result.php
+++ b/src/Executor/Result.php
@@ -12,7 +12,7 @@ class Result {
     $return_val = 0;
     // Suppress StdErr output.
     $dev_null = ' 2> /dev/null';
-    if (stripos(PHP_OS, 'win') !== FALSE) {
+    if (stripos(PHP_OS, 'win') === 0) {
       $dev_null = ' 2> nul';
     }
     $command .= $dev_null;
Prevent Darwin (Mac OSX) from generating a nul file.