fixed a bug in udpatehosts.sh