Update controller-setup.sh

Gateway retrieved from routing table. This (I think) is the more correct way of doing this.