fix match on node name type

Fix for https://github.com/erlware/relx/issues/266