fix incorrect logic in app.exe that causes unable to rename bootstat.dat