fixed shutdown.sh generation