prevent creating partial scripts. fix error when no settings file was found (example attached)