This version should be the PackageVersion.  The package version could have '-' in it so may want to take that into account into the find and replace,