refactor rename_bad_releases so we can use it in the new post-processing script
fixed a bug in rar postprocessing