Update stack.sh

We have to keep "localhost" for ip 127.0.0.1 in /etc/hosts