Fix windows focus issues
Only look at first part of hostname