Disabled checksum always fails

When disabling checksum, the code does not work because it runs rm-on-error-${name} anyway