Fix emitting version map as an array