Use return value of `system` for redis commands instead of $?