Handle error if gethostbyname fails

handling gethostname() isn't enough
Version bump 1.4
match program name in log