/**
 *  Copyright 2014 Ryszard Wiśniewski <brut.alll@gmail.com>
 *  Copyright 2013 Connor Tumbleson <connor.tumbleson@gmail.com>
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package brut.util;

public class OSDetection {
    private static String OS = System.getProperty("os.name").toLowerCase();

    public static boolean isWindows() {
        return (OS.indexOf("win") >= 0);
    }

    public static boolean isMacOSX() {
        return (OS.indexOf("mac") >= 0);
    }

    public static boolean isUnix() {
        return (OS.indexOf("nix") >= 0 || OS.indexOf("nux") >= 0 || OS.indexOf("aix") > 0 || (OS.indexOf("sunos") >= 0));
    }

    public static String returnOS() {
        return OS;
    }
}

@@ -816,16 +816,105 @@
 rCase();
+%0A    private static String Bit = System.getProperty(%22sun.arch.data.model%22).toLowerCase();
 %0A%0A    pu
@@ -970,27 +970,23 @@
 (OS.
-indexOf
+contains
 (%22win%22)
- %3E= 0
 );%0A 
@@ -1053,27 +1053,23 @@
 (OS.
-indexOf
+contains
 (%22mac%22)
- %3E= 0
 );%0A 
@@ -1134,86 +1134,75 @@
 (OS.
-indexOf
+contains
 (%22nix%22)
- %3E= 0
  %7C%7C OS.
-indexOf
+contains
 (%22nux%22)
- %3E= 0
  %7C%7C OS.
-indexOf
+contains
 (%22aix%22)
- %3E 0
  %7C%7C (OS.
 inde
@@ -1201,15 +1201,16 @@
 (OS.
-indexOf
+contains
 (%22su
@@ -1218,14 +1218,97 @@
 os%22)
- %3E= 0)
+));%0A    %7D%0A%0A    public static boolean is64Bit() %7B%0A        return Bit.equalsIgnoreCase(%2264%22
 );%0A 

Add is64Bit() check