Updated the build script to output a copy of the version file into the output repo.