Generate teardown script.
Include the version number so that we can check the running version for the teardown script.