Confine machine dependences into set_metadata.bat (all other files are now machine-independent