fix for unixhost check

Was moved to inside a conditional block oops.