feature: implemented mac detection for ubuntu 12.04 and 14.04

also fixed a bug where the filename must be equal to the function name

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>