Cleaned up the shell command to remove any broken pipe errors