Fix some linux issues with getting Mac address and throwing a NPE