Added automatic 'version' task to generated script.