Slighly change the method of a system call that was splurging stdout into the terminal on Ubuntu