Changed system calls to use QProcess