fix hostname check, check DSHOST, short, long
Should fix problems with hostname detection