[Issue #330] Use inet:gethostname() instead of net_adm:localhost()

see https://github.com/ignatov/intellij-erlang/issues/330