fix system mac address lookup on apple platforms
properly remove test file