Only ignore sigpipe in interactive mode

This allows shell pipes to correctly end redis-cli.

Ref #2066