added function to log os.system call outs