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).