INST-113: Error checking to avoid unnecessary rm and unzip commands