Fix paths in generated metadata.json on Windows