Rework the version stamp code to use the same file as in production

Change-Id: I4aec03b8378d3f071487e89df8c826c45417416f