Fixing hostname check for slaves