Fix copying version data to output (#428)