fix hostname matching. It was only backward matching.
Merge pull request #8 from Songmu/fix/hostname-match

fix hostname matching. It was only backward matching.