set hostname if not already set