build.bat: Simplify some code
coverity.bat: Add 7-Zip detection logic
Fix black screen after replaying file.