fixing case when regression tests might end up in perpetual `script failed` state when previous test files were deleted before comparison