update setup script to be able to adapt to ubuntu 13.10 and debian(raspbian) wheezy