setup.sh: ubuntu+debian compability + other fixes

add debian squeeze&wheezy and ubuntu 12.04 compatibility
workaround for amazon ec2 rhel 6.4 image bug https://bugzilla.redhat.com/show_bug.cgi?id=956531
use http://ipecho.net/plain - http://ipecho.net/developers.html