codegen.sh fix to prevent users from destroying their entire system