Make start.sh more robust.