Fixed redis-cli check function