Use hostnamectl command to get current hostname for host while using systemd strategy. Fixes: #59438 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>