Currently I check process.platform to know if my software runs on windows or linux to get the right path to the mac address:
process.platform
if(process.platform