Only ignore sigpipe in interactive mode

This allows shell pipes to correctly end redis-cli.

Ref #2066
Merge pull request #2200 from badboy/iss2066-additional

Only ignore sigpipe in interactive mode