In redbug script, use long node names if appropriate

If the node name of the target node contains a dot after the @ sign, it
must be a long node name, and we should use -name instead of -sname.