rewrite the host name if the results of uname happen to be shorter than gethostname