Use different hostname strategy for RHEL >= 7. Fixes 7763

fixes issue #7763