private void grabBranch() {
        if(Main.VERBOSE) System.out.println("[INFO] Determining current Git branch...");
        
        BufferedReader buffRead = null;
        String branch = null;

        try {
            Process proc = Runtime.getRuntime().exec("git branch");
            buffRead = new BufferedReader(new InputStreamReader(proc.getInputStream()));
            String line = null;

            while ((line = buffRead.readLine()) != null) {
                if (line.contains("*")) {
                    branch = line.replaceAll("\\* ", "");
                }
            }

        } catch (IOException ioExcep) {
            if(Main.VERBOSE) System.out.println("[ERROR] Cannot get current Git branch!");
            branch = "unknown";

        } finally {
            if(Main.VERBOSE) System.out.println("[INFO] Branch determined as '" + branch + "'");
            
            builder.append("Branch=");
            builder.append(branch);
            builder.append("\n");

            try {
                if (buffRead != null) {
                    buffRead.close();
                }
            } catch (IOException ioExcep) { }
        }
    }