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