From upstream: improved the post-processing script to better handle renamed rar-files