Use `exec` redirections.

This alleviates a blocking issue reported and fixed by Alexandre Bruyelles.