Replaced Runtime.exec with ProcessBuilder