Fix the removal of bagits folder after testing