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".
Merge pull request #1102 from Shadark/rename_fix

Fixed pngnq rename error in Windows