use hostnamectl, if available, else use /etc/hostname and hostname

Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>