fix: remove some pipes to dev/null

The removed ones could indicate legitimate problems with running the script.
The commit also puts some guards around things we know will fail, to avoid
extra output.