[ALOY-627] Regenerate CFG.js only when it has changed

Resolves https://jira.appcelerator.org/browse/ALOY-627