fixed bug with version-file generation