Update AutoSeed.sh

Optimize control flow