Fix possible infinite loop (close gh-17).
Update FILEVERSION and PRODUCTVERSION properly (close gh-16).