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.
Merge pull request #26 from legoscia/maybe-long-names

In redbug script, use long node names if appropriate