fix condition in hostname
Merge pull request #134 from phunehehe/hostname

fix condition in hostname