Fix MAC detection on Linux machines

Signed-off-by: Frca <killerfrca@gmail.com>