Added version to generated script.
Fixes #7.