fix removing hosts failure on MacOSX
Merge pull request #13 from suin/master

fix removing hosts failure on MacOSX