Fix generate_code_version never calling the callback - writeFileSync was used instead of writeFile.
only update code_version.js if the saved version is different to the current version.

Every time code_version.js is updated unecessarily, all JS files are rebuilt for all locales, wasting time.