Changed slighlty how we read the metadata (on windows we also use a script file now)