Fix loadGlobalMetadata on Windows