private Integer[] getVersionInts(String versionString) {
        String bits;
        if (versionString.split("\\-v").length == 2) {
            bits = versionString.split("\\-v")[1];
        } else if (versionString.split(" v").length == 2) {
            bits = versionString.split(" v")[1];
        } else if (versionString.split(" ").length == 2) {
            bits = versionString.split(" ")[1];
        } else {
            bits = versionString;
        }

        Integer[] versionMapping = new Integer[bits.split("\\.").length];
        String[] nums = bits.split("\\.");
        for (int i = 0; i < nums.length; i++) {
            try {
                versionMapping[i] = Integer.parseInt(nums[i]);
            } catch (NumberFormatException e) {
                versionMapping[i] = 0;
            }
        }

        return versionMapping;
    }