Replaced implementation of ProcessFactory to use ProcessBuilder