Fix bugs in installer shim and start.sh