fix error when erlang running without node name

This is because erlang doesn't start with sname or name parameter on some hostings (heroku for example).
Merge pull request #1 from petrkozorezov/master

Fix error when erlang running without node name