Fixed small bug when parsing hosts file