Fixed pngnq rename error in Windows

Fixed error 183 (File already exists) in Windows when trying to use
pngnq and trying to rename "file.png.tmp" to "file.png".