[tgzWizard.sh] added some error checking