Update startup.sh

various fixes